package com.jun.mapper;

import com.jun.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.Map;

@Mapper
public interface UserMapper {
    int insertUser(User user);  //插入一个会员
    User getUserByTellPhone(String tellphone); //根据电话号码查询会员
    int updateUserByTellPhone(Map<String,Object> map);  //根据电话号码修改会员信息
    int updateUserTimesByTellPhone(Map<String,Object> map); //根据电话号码修改会员的办卡类型的次数
    ArrayList<User> getAllUser();   //获取所有会员信息
    int updateUserTimeByTellPhone(Map<String,Object> map);  //根据电话号码修改会员的最近操作时间
    int deleteUserByTellPhone(String tellphone);    //根据电话号码删除会员
}
